{if !empty($data.options)}<div class="form-text-container is-quick">{/if}
<input type="text"
    {foreach $data.attrs as $key => $attr}
    {$key}="{$attr}"
    {/foreach}
>
{if !empty($data.options)}
<select class="elem-text-options" lay-filter="{$data.field}-quick-options">
    <option disabled>快速填写≡{$data.label}≡</option>
    {foreach $data.options as $value => $title}
    {if !is_array($title)}
    <option value="{$value}" {if ($data.attrs.value ?? '') == $value}selected{/if}>{$title}</option>
    {else}
    <optgroup label="{$value}">
        {foreach $title as $value1 => $title1}
        <option value="{$value1}" {if ($data.attrs.value ?? '') == $value1}selected{/if}>{$title1}</option>
        {/foreach}
    </optgroup>
    {/if}
    {/foreach}
</select>
{/if}
{if !empty($data.options)}</div>{/if}
